<?php

namespace Xx2025\Kingdee\Erp\Response;

use Xx2025\Kingdee\Erp\BaseResponse;
use Xx2025\Kingdee\Erp\ResponseInterface;

class GyErpTradeReturnDetailGet extends BaseResponse implements ResponseInterface
{
    private static $_instace;


    /**退货状态 0：待处理， 1：已入库， -1：已取消
     * @var string
     */
    private int $returnState = 0;

    /**erp接收时间
     * @var string
     */
    private string $erpReceiveDate = '';

    public static function getInstance() :self
    {
        if(empty(self::$_instace)) {
            self::$_instace = new self();
        }
        return clone self::$_instace;
    }

    public function setReturnState($code)
    {
        $this->returnState = $code;
    }


    public function getReturnState()
    {
        return $this->returnState;
    }


    public function setErpReceiveDate($date)
    {
        $this->erpReceiveDate = $date;
    }



    public function getErpReceiveDate()
    {
        return $this->erpReceiveDate;
    }



}